
path = "C:\\Users\\Administrator\\Desktop\\test\\1594895.jpg"

file = open(path, 'rb')
img = file.read()                 # 读取二进制文件


file.close()


# from PIL import Image
#
# img = Image.open(path)  # 打开图片文件
# print(img.size)
# img = img.rotate(30)
# img.show()  # 显示图片


"""
open 只要两个参数：
1. 文件路径
2. 读取模式
    rb  
"""
